//
//  ZMProductsModel.swift
//  LoveBeen
//
//  Created by pg on 2017/8/7.
//  Copyright © 2017年 pg. All rights reserved.
//

import UIKit

class ZMProductsModel: NSObject {

    //所属分类id
    var category_id:String?
    //商品id
    var id : String?
    //商品名称
    var name:String?
    //商品配图
    var img:String?
    
    //品牌
    var brand_name:String?
    //超时价格
    var market_price:String?
    //现在价格
    var price:String?
    
    //详情,细节规格
    var specifics: String?
    //库存数量
    var store_nums:String?
    
    //精选  是否显示精选  1: 显示  0 不显示
    var is_xf:Int = 1
    
    //买一赠送  是否显示 1: 显示  0 不显示
    var had_pm:Int = 1
    
    //购买数量
    var buyNum: Int = 0{
        didSet{
            if buyNum < 0 {
                buyNum = 0
            }
            
            
        }
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
}
